var _ax= new Ajax(URL,processReady);
var _username = document.getElementById("username").value;

document.getElementById("btnSend").addEventListener("click", function(){
  var message = document.getElementById("Message").value;
  if(!message) return;
  try {
      _ax.send("msg=" + escape(message) + "&id=" + _username);
  } catch (err) {
      alert(err);
  }
  message = "";
  document.getElementById("Message").value = message;
});
